package vars

import "gitee.com/csingo/cCommand"

var CommandConfig = &cCommand.CommandConf{
	Enable: true,
	Commands: []*cCommand.CommandConf_Command{
		//{Mode: cCommand.CommandMode_Single, Wait: 0, Try: 1, Cron: "* * * * * *", App: "demo", Command: "HelloCommand", Method: "Say", Options: []string{"cxy"}},
		{Mode: cCommand.CommandMode_Sync, Wait: 0, Try: 1, Cron: "* * * * * *", App: "collector", Command: "InitDeployKeyCommand", Method: "Handle", Options: []string{}},
		{Mode: cCommand.CommandMode_Sync, Wait: 0, Try: 1, Cron: "* * * * * *", App: "collector", Command: "InitSQLCommand", Method: "CreateTable", Options: []string{}},
		{Mode: cCommand.CommandMode_Single, Wait: 0, Try: 0, Cron: "0 * * * * *", App: "collector", Command: "PackagesJsonCommand", Method: "Create", Options: []string{}},
		//{Mode: cCommand.CommandMode_Single, Wait: 0, Try: 0, Cron: "0 * * * * *", App: "collector", Command: "PackagesDownloadCommand", Method: "Read", Options: []string{}},
		{Mode: cCommand.CommandMode_Single, Wait: 0, Try: 1, Cron: "* * * * * *", App: "collector", Command: "PackagesDownloadCommand", Method: "Download", Options: []string{}},
	},
}
